package com.niiwoo.civet.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * OCR渠道
 */
@Getter
@AllArgsConstructor
public enum OCRChannelEnum {

    EMPTY((byte) 0, "无"),
    FACE((byte) 1, "face++");

    private Byte value;

    private String desc;

    public static OCRChannelEnum of(byte value) {
        for (OCRChannelEnum t : values()) {
            if (t.value == value) {
                return t;
            }
        }
        return null;
    }

}
